<?php
// set the output content type as text/json
header('Content-Type: text/json');

// create the response array
$response = array(
                "books" => array(
                            array(
                                "titel" => "Doventaal voor blinden",
                                "auteur" =>"Johnny Janssen"),
                            array(
                                "titel" => "Braille voor doven",
                                "auteur" =>"Miep Wandelstok")));

// json-encode the array
echo json_encode($response);
?>